package cn.heima.cn;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class Demo1 {
    public static void main(String[] args) {
      Map<String ,String > map = new HashMap<>();
      map.put("aaa","111");
      map.put("bbb","333");
      map.put("ggg","222");
      map.put("ttt","444");
      map.put("yyy","555");
      map.put("ppp","888");
      map.put("rrr","999");
        Set<String> strings = map.keySet();
        for (String string : strings) {
            String s = map.get(string);
            System.out.println(string+"-->"+s);
        }
        System.out.println("------------");



    }
}
